package com.xingxuecn.limit.common.model;

import org.apache.commons.lang3.builder.MultilineRecursiveToStringStyle;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @author zgx at 2018/9/10 0010 下午 2:11
 */
public class User {
    private Integer id;
    private String nick;
    private String account;
    private String pwd;
    private Integer state;


    public User() {
    }

    public User(Integer id, String nick, String account, String pwd, Integer state) {
        this.id = id;
        this.nick = nick;
        this.account = account;
        this.pwd = pwd;
        this.state = state;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, new MultilineRecursiveToStringStyle())
                .append("id", id)
                .append("nick", nick)
                .append("account", account)
                .append("pwd", pwd)
                .append("state", state)
                .toString();
    }
}
